package com.jdk21.core.controller;

import com.jdk21.api.common.Response;
import com.jdk21.core.utils.HttpRequestUtil;
import jakarta.servlet.http.HttpServletRequest;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@Slf4j
@RestController
public class TestController {


    @RequestMapping("/test")
    public Object test(HttpServletRequest request) throws Exception {
        String requestBody = HttpRequestUtil.getRequestBody(request);
        log.info("requestBody:{}", requestBody);

        return Response.successResult(null);
    }
}
